package com.hsh.maoduo.pojo.other.yt;

import com.hsh.maoduo.anno.Alia;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Objects;

/**
 * 美团发货 文档
 */
@Data
@NoArgsConstructor
public class MTSendGoods {
    /**
     * 门店id
     */
    @Alia("门店id")
    private String shopId = "18687781";
    /**
     * 订单编号
     */
    @Alia("订单编号")
    private String orderNo;
    /**
     * 物流平台编码1
     */
    @Alia("物流平台编码1")
    private String expressCompanyCode1 = "10075";
    /**
     * 物流平台编码1
     */
    @Alia("物流单号1")
    private String expressNum1;

    public MTSendGoods(String orderNo, String expressNum1) {
        this.orderNo = orderNo;
        this.expressNum1 = expressNum1;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (!(o instanceof MTSendGoods)) return false;
        MTSendGoods that = (MTSendGoods) o;
        return Objects.equals(orderNo, that.orderNo) && Objects.equals(expressNum1, that.expressNum1);
    }

    @Override
    public int hashCode() {
        return Objects.hash(orderNo, expressNum1);
    }
}
